package com.ktjy.mapper;

import java.io.IOException;

public final class User extends BaseClass{
    private String name;
    private String password;
    public static String star="11111";

    public User(String name, String password, String star) {
        this.name = name;
        this.password = password;
        this.star = star;
    }

    private void silebtMethod() throws IOException,NullPointerException {
        System.out.println("时代少年团 我们喜欢你 我们喜欢马嘉祺 丁程鑫......");
    }

    public User() {
    }

    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }

    /**
     * 设置
     * @param star
     */
    public static void setStar(String star) {
        User.star = star;
    }

    /**
     * 获取
     * @return star
     */
    public static String getStar() {
        return star;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    public String toString() {
        return "User{name = " + name + ", password = " + password + "}";
    }
}
